d027835d344af7f61d1416a555c829cd255f1d8b,edu.rice.cs.hpc.data/src/edu/rice/cs/hpc/data/experiment/scope/ProcedureScope.java,ProcedureScope,equals,#Object#,112
Before Change
public boolean equals(Object obj) {
if (obj instanceof ProcedureScope) {
ProcedureScope p = (ProcedureScope) obj;
return this.getName().equals(p.getName()) && this.getSourceFile().getName().equals(p.getSourceFile().getName());
} else return false;
}
After Change
// of course, when it's closing, we remove databases and all references to enable
// garbage collection to gather unused storage
SourceFile mySrc = getSourceFile();
SourceFile pSrc = p.getSourceFile();
if (mySrc != null && pSrc != null) {
return mySrc.getName().equals(pSrc.getName());
}